package my.test.iterator.best;

/**
 * @Author 许玉康
 * @Date 2019/9/5 13:12
 */
public class Boss {

    public static void main(String[] args) {
        IProject project = new Project();
        project.add("11",1 ,1);
        project.add("12",1 ,1);
        project.add("13",1 ,1);
        for (int i = 0; i < 104; i++) {
            project.add("第"+ i + "个项目", i * 5, i*10000);
        }
        //遍历一下ArrayList，把所有的数据都取出来
        IProjectIterator projectIterator = project.iterator();
        while(projectIterator.hasNext()) {
            IProject p = (IProject) projectIterator.next();
            System.out.println(p.getProjectInfo());
        }
    }
}
